#ifndef PWMCONTROL_H
#define PWMCONTROL_H
#include <QObject>
#include <QFile>
#include <QString>
#include <QDebug>
#include <QTimer>

class PwmControl
{
private:

    QString m_basePath;
     bool writeToFile(const QString &path, const QString &value);
     bool m_initialized;
    static PwmControl* pwmcon;
public:
    bool initPwm();
    static PwmControl * instance();
    PwmControl();
    bool setAngle(int angle);
    bool setPulseWidth(int pulseWidthUs);
    bool enable();
};

#endif // PWMCONTROL_H
